import request from '@/utils/request'

export function loginApi(data) {
  return request({
    url: '/sys/login',
    method: 'post',
    data
  })
}

export function getInfoApi(token) {
  return request({
    url: '/sys/profile',
    method: 'POST',
    params: { token }
  })
}

export function getUserDetailById(id) {
  return request({
    url: `/sys/user/${id}`
  })
}
